package chapter10;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/4/13 13:25
 */
public class Parcel9 {
    public static void main(String[] args) {
        Parcel9 parcel9 = new Parcel9();
        Destination destination = parcel9.destination("Tasmania");
        destination.readLabel();
    }

    public Destination destination(final String dest) {
        return new Destination() {
            @Override
            public String readLabel() {
                return dest;
            }
        };
    }
}
